import Vue from "vue";

export const Confirm = {
    show: function (message, callback) {
        Vue.prototype.$confirm(message, '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
        }).then(() => {
            if (callback) {
                callback();
            }
        }).catch(() => {
            Vue.prototype.$message({
                type: 'info',
                message: '已取消删除'
            });
        });


    }
}
